package basic;

public class Main {
    public static void main(String[] args) {
        GameControl gameControl = buildHandler();
        gameControl.doChain();
    }

    private static GameControl buildHandler() {
        FirstHandler firstHandler=new FirstHandler();
        firstHandler.next=new SecondHandler();
        firstHandler.next.next=new ThirdHandler();
        return firstHandler;
    }
}
